package com.steward.dao.card;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.steward.dto.card.CardConsumeDTO;
import com.steward.dto.card.UserCardDTO;

@Repository
public interface CardQueryMapper {
	
	/**
	 * 查询年卡数据
	 * @param userId   T_mod_reg pk
	 * @return
	 */
	List<UserCardDTO> queryUserCardList(@Param("userId")String userId);
	
	/**
	 * 查询用户年卡消费记录
	 * @param cardId  T_vip_card pk
	 * @return
	 */
	List<CardConsumeDTO> queryCardConsumeList(@Param("cardId")String cardId);

}
